print("车次\t\t出发站\t到达站\t出发日期\t出发时间\t到达时间\t历时时长")
data=[
    ["G1569","北京南","天津南","11月08日","18:06","18:39","00:33"],
    ["G1567","北京南","天津南","11月08日","18:15","18:49","00:34"],
    ["G8917","北京南","天津南","11月08日","18:020","19:19","00:59"],
    ["G203","北京南","天津南","11月08日","18:35","19:99","00:34"],
]
data1={
    "che":[
        {
            "车次":"G1569",
            "出发站":"北京南"
        },

        {
            "车次": "G1567",
            "出发站": "北京南"
        },

        {
            "车次": "G18917",
            "出发站": "北京南"
        }
    ]
}  #json格式的数据
for a in data:
    # sep 默认 数据与数据之间是是一个空格 end="\n"  空格
    print(*a,sep="\t")
che_info=input("请输入购买的车次:")
for che in data:
    if che_info in che:
        # print(che)
        ren_info=input("请输入乘车人信息:如果多个请用逗号隔开")
        print(f"[12306]{ren_info}购票成功,{che[3]}{che[0]}次,{che[1]}{che[4]}开")
        break
